<!DOCTYPE html>
<html class="x-admin-sm" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>欢迎页面-X-admin2.1</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <link rel="stylesheet" href="http://localhost:8080/css/font.css">
    <link rel="stylesheet" href="http://localhost:8080/css/xadmin.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="http://localhost:8080/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="http://localhost:8080/js/xadmin.js"></script>
    <script type="text/javascript" src="http://localhost:8080/js/cookie.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <link rel="shortcut icon" href="../resources/favicon.ico" th:href="@{/static/favicon.ico}"/>
</head>

<body>
<div class="x-body">
    <form class="layui-form" method="post" th:action="@{/grade/addGrade}">
        <div class="layui-form-item">
            <label for="sid" class="layui-form-label">
                <span class="x-red">*</span>学号
            </label>
            <div class="layui-input-inline">
                <select id="sid" name="sid" class="valid">
                    <option th:each="student : ${list}" th:value="${student.sid}" th:text="${student.sid}"></option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label for="course" class="layui-form-label"><span class="x-red">*</span>课程</label>
            <div class="layui-input-inline">
                <input type="text" id="course" name="course" required="" lay-verify="required"
                       autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label for="grade" class="layui-form-label">
                <span class="x-red">*</span>成绩
            </label>
            <div class="layui-input-inline">
                <input type="text" id="grade" name="grade" required="" lay-verify="required"
                       autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label for="add" class="layui-form-label">
            </label>
            <input id="add" value="添加" type="submit">
        </div>
    </form>
</div>

</body>

</html>